﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content_panel">
        <div class="box_center">
	        <div class="title"><span><%= Model.DetaifOfLoaiSachModel.GetModel.LstObjModel[0].TenLoaiSach %></span>
                <div class="bg">
                    <img src="../../Content/Images/Home/bg_title_right.png" />
                </div>
            </div>
	        <div class="content">	
            <% foreach (var item in Model.SachModel.GetModel.LstObjModel)
                { %>
                <div class="list_item">
                    <div class="img">
                        <a href="<%= Url.Action("ChiTietSach", "Home", new { id = item.ID }) %>" title="<%= item.TenSach %>">
                            <img src="../../Content/Images/Items/<%= item.HinhMinhHoa %>" alt="<%= item.TenSach %>" width="114" height="151" />
                        </a>
                    </div>
                    <div class="text">
                        <a href="<%= Url.Action("ChiTietSach", "Home", new { id = item.ID }) %>" title="<%= item.TenSach %>" class="name"><%= item.TenSach %></a><br>
                        <p>Giá: <%= string.Format("{0:0,0}", item.Gia) %>đ</p>
                        <p>Số trang: <%= item.SoTrang %></p>
                        <p>Khổ: <%= item.Kho %></p>
                        <p>Tác giả: <%= item.TacGia %></p>
                        <%
                            var point = WebConfiguration.RetrievePoint(item);
                            var star = WebConfiguration.RetrievStar(point);
                         %>
					    <span class="rating">Đánh giá: <img src="../../Content/Images/Home/<%= star %>" alt="Bình thường"><br>
                            <a href="<%= Url.Action("ChiTietSach", "Home", new { id = item.ID }) %>" title="Xem tiếp" class="next">Xem tiếp</a>
                        </span>
                    </div>
                </div>
            <% } %>
            </div>
        </div>
    </div>
</asp:Content>
